<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * index.php
 * @author ranuandra
 *
 * 13 Mar 2012 13:56:23
 *
 * 
 */
?>
           <div class="toolbar-wrapper">
            	<div class="toolbar-container">
                    <ul class="toolbar">
                        <li><a href="<?php echo URL::base()?>admin/lowongan/new" class="New"><span class="medium_icon_new"></span></a></li>
                    </ul>
                </div>
            	<h1 class="title">Proses Lowongan</h1>
            </div>
            <div class="pagination-wrapper">
            	<div class="search"><label>Cari : </label><input type="text" name="search" size="20"> <input type="submit" value="Go"> <input type="reset"></div>
                <div class="pagination-container">
                	<!--<ul class="pagination">
                    	<li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                    </ul>  -->
                </div>
            </div>
            <div class="content">
           		<table class="data">
                	<thead>
                    	<tr>
                        	<th>#<input type="checkbox" name="kolom[]" class="cek_tbl"></th>
                        	<th>Kode</th>
                        	<th>Deskripsi</th>
                        	<th>Terbit</th>
                        	<th>Publikasi</th>
                        	<th>Pelamar</th>
                        	<th>Proses</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php 
                    if(isset($datas))
                    {
                    	foreach($datas as $data)
                    	{
                    		
                    ?>
                    	<tr>
                        	<td><input type="checkbox" name="kolom[]" class="cek_tbl"></td>
                            <td><a href="<? echo URL::base() ?>admin/lowongan/detail/<?php echo $data->id?>"><?php echo $data->kode?></a></td>
                            <td><?php echo $data->deskripsi?></td>
                            <td><?php echo date("d M Y", strtotime( $data->datefrom ) ) ?> - <?php echo date("d M Y", strtotime( $data->dateto ) )?></td>
                            <td><?php echo date("d M Y", strtotime( $data->publisheddate ) )?></td>
                            <td><?php echo $data->pelamarlowongan->count_all() ?></td>
                            <td><a href="<? echo URL::base() ?>admin/proseslowongan/proses/<?php echo $data->id?>">proses</a></td>
                        </tr>
                    <?php 
                    	}
                    }
                    ?>
                    </tbody>
                </table>
            </div>
             <div class="pagination-wrapper">
                <div class="pagination-container">
                	<!--<ul class="pagination">
                    	<li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li> 
                    </ul> -->
                </div>
            </div>
            <div>